package com.qxy.hgz.util;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

public class InitUtil {

    public static void initRecycleView(RecyclerView recyclerView,
                                       RecyclerView.Adapter<? extends RecyclerView.ViewHolder> adapter, Context context) {
        recyclerView.setAdapter(adapter);
        recyclerView.setLayoutManager(new LinearLayoutManager(context));
        recyclerView.setHasFixedSize(true);
    }
}
